from pathlib import Path
# 导包
from urllib.parse import quote_plus
import pymysql

# 连接MySQL的路由   使用f格式化


BASE_DIR = Path(__file__).resolve().parent.parent
DEBUG = True
# SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@127.0.0.1:3306/money'
SQLALCHEMY_DATABASE_URI =f"mysql+pymysql://root:{quote_plus('123456')}@127.0.0.1:3306/bsm_schema"
# SQLALCHEMY_DATABASE_URI =f"oracle://user_2400:dm_pwd_2400@100.7.6.139:1521/?service_name=ORCL"
SECRET_KEY='1%3ya7fnmoiasfsdqws2345'

# SQLALCHEMY_BINDS = {
#     'user_2400':f"oracle://user_2400:dm_pwd_2400@100.7.6.139:1521/?service_name=ORCL"
# }

SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
ENV = 'develepment'

# REDIS_URL = f"redis://:{quote_plus('Fzh@0019')}@localhost:3306/0"

# REDIS_URL = "redis://:Fzh@0019@localhost:6379/0"